	<?php global $cv_option, $cv_comments_switcher, $entry_count;
	
	$show_comments = false;	
	if($cv_comments_switcher == 'off')
		$show_comments = false;
	else if($cv_option['show_comments'] == 'Posts/Pages') 
		$show_comments = true;
	elseif(is_page() && $cv_option['show_comments'] == 'Pages Only')
		$show_comments = true;
	elseif(!is_page() && $cv_option['show_comments'] == 'Posts Only')
		$show_comments = true;		

	?>	
	
    <div class="hentry clearfix <?php if($entry_count == 1) echo "hentry-first"; ?>">			
					
		<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>	
		
		<?php if(!is_page()) { ?>		
			<span class="entry-meta">	
				<?php if(is_single()) { ?>			
					<div class="entry-avatar"><?php echo hybrid_avatar(); ?></a></div>
				<?php } ?>
					<span class="date">
						<?php echo get_the_time('M jS Y');?> 					
					</span>						
					<?php 
					echo apply_atomic_shortcode( 'entry_meta', __( 'by [entry-author]', hybrid_get_textdomain() ) ); ?>
					<span class="comments-link">
						<a class="comments-number" href="<?php echo get_comments_link();?>" ><?php echo get_comments_number() . ' ' . __( 'Comments', hybrid_get_textdomain() );?></a>			
					</span>								
						
			</span>	<!-- .entry-meta -->
		<?php } ?>
		
		<div class="clear"></div>
		
		<div class="entry-content">
			<?php 		
				the_content('Read More'); 
				wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); 
			?>			
		</div><!-- .entry-content -->		
			
	</div>					

	<div id="nav-below" class="page_navi">						 
		<?php cv_pagenavi(); ?> 
	</div><!-- #nav-below -->
	
	<?php if(!is_page()) {	
		get_sidebar( 'single' );  	
		wp_reset_query();
	} ?>	
	
	<?php
	if($show_comments == true) {
		comments_template( '/comments.php', true ); // Loads the comments.php template.
	} ?>
		
	<?php $cv_comments_switcher = 'on'; ?> 